<template>

    <div class="index">
        <transition :key="key">
            <router-view></router-view>
        </transition>

    </div>

</template>
<script>
export default {
  computed: {
    key() {
      return this.$route.name !== undefined
        ? this.$route.name + new Date()
        : this.$route + new Date();
    }
  }
};
</script>
